<?php

$redis = new Redis();
$redis ->connect('110.41.76.101',6379,5);
$redis ->auth('432943');
$name = $redis->get('name');
var_dump($name);
$redis->set('age',20,['ex'=>300,'nx']);
var_dump($redis->get('age'));